<?php
class LoginAction extends CommonAction{
    public function index(){}

    public function login(){
        if(IS_POST){
            $user = D('User')->isUser();
            if($user){
                session('userid',$user['userid']);
                $this->success('登陆成功！',U('Index/bigwheel'));
                exit;
            }else{
                $this->error('用户名或密码不正确！');
                exit;
            }
        }

        $this->display();
    }



}